package org.jeecg.modules.charge.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.entity.charge.ChargeFeeitem;
import org.jeecg.modules.charge.entity.ChargeFeeitemTree;

import java.util.List;
import java.util.Map;

/**
 * @Description: 收费项目
 * @Author: jeecg-boot
 * @Date:   2019-07-04
 * @Version: V1.0
 */
public interface IChargeFeeitemService extends IService<ChargeFeeitem> {
    /**
     * 查询所有的的收费项目
     * @return
     */
    Map<String,List<String>> queryFeeproject();

    List<Map> selectFee();
    //查询所有的收费项目类别
    List<ChargeFeeitemTree> getCategory();

    //收费项目分页+模糊查询
    public Page<ChargeFeeitem> listByParams(Page<ChargeFeeitem> page, Map map);

    List<ChargeFeeitem> selectFeeItemList();

    //根据对应的收费项目编号获取对应的收费项目
    public  ChargeFeeitem  getFeeitemByCode(String feeCode);

    public ChargeFeeitem getFeeitemById(String id);

    List<ChargeFeeitem> queryItemByName(String itemName);

    Integer getChargeFeeRule(String id);
}
